<template>
  <div class="about">
    <div class="about-container">
      <div class="about-header">
        <h1>关于图片标注系统</h1>
        <p>专为旅游景点项目设计的交互式标注解决方案</p>
      </div>

      <div class="about-content">
        <el-row :gutter="30">
          <el-col :xs="24" :md="12">
            <div class="info-card">
              <h2>系统介绍</h2>
              <p>
                本系统是一个功能完整的图片标注工具，专门为旅游景点项目开发。
                支持在底图上添加交互式标注点，每个标注点可以包含详细的信息，
                非常适合用于景点介绍、导览地图、展示看板等场景。
              </p>

              <h3>主要特性</h3>
              <ul>
                <li>直观的可视化编辑界面</li>
                <li>响应式设计，适配各种设备</li>
                <li>本地数据存储，无需服务器</li>
                <li>大屏展示模式，支持全屏显示</li>
                <li>基于Vue 3和Element Plus开发</li>
              </ul>
            </div>
          </el-col>

          <el-col :xs="24" :md="12">
            <div class="info-card">
              <h2>技术栈</h2>
              <div class="tech-list">
                <el-tag type="primary" size="large">Vue 3</el-tag>
                <el-tag type="success" size="large">Element Plus</el-tag>
                <el-tag type="warning" size="large">Vue Router</el-tag>
                <el-tag type="info" size="large">Vuex</el-tag>
                <el-tag type="danger" size="large">SCSS</el-tag>
              </div>

              <h3>版本信息</h3>
              <el-descriptions :column="1" border>
                <el-descriptions-item label="系统版本">v1.0.0</el-descriptions-item>
                <el-descriptions-item label="Vue版本">3.2.13</el-descriptions-item>
                <el-descriptions-item label="Element Plus">最新版</el-descriptions-item>
                <el-descriptions-item label="开发时间">2024年</el-descriptions-item>
              </el-descriptions>
            </div>
          </el-col>
        </el-row>

        <div class="usage-guide">
          <h2>使用指南</h2>
          <el-steps :active="4" finish-status="success">
            <el-step title="上传底图" description="选择要标注的图片文件"></el-step>
            <el-step title="添加标注" description="点击图片位置添加标注点"></el-step>
            <el-step title="编辑信息" description="为标注点添加标题和描述"></el-step>
            <el-step title="预览效果" description="在预览模式查看最终效果"></el-step>
          </el-steps>
        </div>

        <div class="contact-info">
          <h2>联系我们</h2>
          <p>如果您在使用过程中遇到任何问题，或者有功能建议，欢迎联系我们：</p>
          <div class="contact-methods">
            <el-button type="primary" :icon="Message">
              技术支持
            </el-button>
            <el-button type="success" :icon="Document">
              查看文档
            </el-button>
            <el-button type="warning" :icon="Star">
              功能建议
            </el-button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Message, Document, Star } from '@element-plus/icons-vue'

export default {
  name: 'AboutView',
  components: {
    Message,
    Document,
    Star
  }
}
</script>

<style scoped>
.about {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px 20px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h1 {
  font-size: 42px;
  color: #303133;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.about-header p {
  font-size: 18px;
  color: #606266;
  margin: 0;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  height: 100%;
}

.info-card h2 {
  color: #303133;
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 600;
}

.info-card h3 {
  color: #409eff;
  margin: 25px 0 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.info-card p {
  color: #606266;
  line-height: 1.8;
  margin-bottom: 20px;
}

.info-card ul {
  color: #606266;
  line-height: 1.8;
  padding-left: 20px;
}

.info-card li {
  margin-bottom: 8px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.usage-guide {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.usage-guide h2 {
  color: #303133;
  margin: 0 0 30px 0;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.contact-info {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-info h2 {
  color: #303133;
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 600;
}

.contact-info p {
  color: #606266;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about {
    padding: 20px 10px;
  }

  .about-header h1 {
    font-size: 32px;
  }

  .about-header p {
    font-size: 16px;
  }

  .info-card,
  .usage-guide,
  .contact-info {
    padding: 20px;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .contact-methods .el-button {
    width: 200px;
  }
}
</style>
